/**
 * Created with hong.rong
 * Date:2020/08/02
 */

import request from '@/utils/request'

/**
 * banner list
 * @param data
 * @returns {Promise<*>}
 */
export async function getBannerList(data = {}) {
  return request.post('/admin/banner/list', data)
}

/**
 * banner 新增、修改
 * @param data
 * @returns {Promise<*>}
 */
export async function bannerModify(data = {}) {
  return request.post('/admin/banner/modify', data)
}
